{{extend name="layouts/main" /}}

{{block name="title"}}<title>管理员列表 | 微信小程序后台管理系统</title>{{/block}}

{{block name="css"}}
<style>

</style>
{{/block}}
{{block name="content"}}
<section class="content-header">
    <h1>管理系统</h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Banner管理</a></li>
        <li class="active">Banner列表</li>
    </ol>
</section>
<section class="content" id="showcontent">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <div class="box-header">
                    <h3 class="box-title">管理员列表</h3>
                    <a href="{{:url('admin/create')}}" class="label label-success">创建</a>
                    <div class="box-tools">
                        <div class="input-group input-group-sm" style="width: 150px;">
                            <input type="text" name="table_search" class="form-control pull-right"
                                   placeholder="请输入关键字...">

                            <div class="input-group-btn">
                                <button type="submit" class="btn btn-default"><i class="fa fa-search"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="box-body table-responsive no-padding">
                    <table class="table table-hover">
                        <tbody>
                        <tr>
                            <th>编号</th>
                            <th>名字</th>
                            <th>创建时间</th>
                            <th>操作事项</th>
                        </tr>
                        {{volist name="admin" id="item"}}
                        <tr>
                            <td>{{$item->id}}</td>
                            <td>{{$item->username}}</td>
                            <td>{{$item->create_time}}</td>
                            <td>
                                <a href="{{:url('admin/Admin/edit', ['id'=>$item->id])}}" class="label label-success">编辑</a>
                                &nbsp;
                                <a href="{{:url('admin/Admin/delete', ['id'=>$item->id])}}" class="label label-danger">删除</a>
                            </td>
                        </tr>
                        {{/volist}}
                        </tbody>
                    </table>
                </div>
                <div class="box-footer clearfix">
                    <ul class="pagination pagination-sm no-margin pull-right">
                        {{$admin->render();}}
                    </ul>
                </div>
            </div>
        </div>
    </div>
</section>
{{/block}}
{{block name="js"}}
<script>
    // 激活菜单栏
    $(document).ready(function () {
        $("#m-7").addClass('active');
    })
</script>
{{/block}}